package com.fpt.group3.service;

import java.util.List;

import com.fpt.group3.dao.GovernmentDAOImpl;
import com.fpt.group3.form.Government;
import com.fpt.group3.service.exception.SystemException;
/**
 * Government Service class.
 * @author Spatra
 *
 */
public class GovernmentServiceImpl implements GovernmentService {

    /**
     * GovernmentDAOImpl.
     */
   private GovernmentDAOImpl governmentDAOImpl;
   /**
    *Generate GovernmentDAO implement.
    * @param governmentDAOImplPara the GovernmentDAO implement
    */
   public final void setGovernmentDAOImpl(
           final GovernmentDAOImpl governmentDAOImplPara) {
      this.governmentDAOImpl = governmentDAOImplPara;
   }

   @Override
   public final List<Government> listGovernment(
          final boolean active) throws SystemException {
      return this.governmentDAOImpl.listGovernment(active);
   }
   @Override
   public final List<String> getListCounty(final String govOfficeRegionName) {
      return this.governmentDAOImpl.getListCounty(govOfficeRegionName);
   }
}
